package com.cd.price.jpa.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @Description  比价后台库表
 * @Author lqq
 * @Date 2025/5/11 10:51
 **/
//@Entity
@Data
@Table(name = "db_price_node",
        indexes = {
                @Index(name = "idx_good_id", columnList = "goodId")})
@NoArgsConstructor
@AllArgsConstructor
public class PriceNode {

    //id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    //对应商品id
    @Column(name = "good_id")
    private String goodId;

    //价格
    @Column(name = "price")
    private String price;

    //平台
    @Column(name = "platform")
    private String platform;

    //时间
    @Column(name = "time")
    private String time;

    //备注
    @Column(name = "remark")
    private String remark;

    //是否可靠
    @Column(name = "reliable")
    private String reliable;

    //上传人
    @Column(name = "owner")
    private String owner;
}
